package cn.wzvtc.soft14.Service;

import cn.wzvtc.soft14.domian.projectpeople;
import cn.wzvtc.soft14.repository.PeopleRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by asus on 2016/6/23.
 */
@Service
public class ProPeopleService {

    @Autowired
    private PeopleRepo peopleRepo;

    public List getStudentInfoTwo(String studentId)
    {
        return this.peopleRepo.findByStudentId(studentId);
    }

    public int getStudentCount(String studentId)
    {
        List<projectpeople> result = peopleRepo.findByStudentId(studentId);
        return result.size();
    }
}
